package com.softvan.web.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import lombok.extern.slf4j.Slf4j;

@WebListener
@Slf4j
public class DemoHttpSessionListener implements HttpSessionListener{
	@Override
    public void sessionCreated(HttpSessionEvent se) {
		log.info("Session 被创建");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
    	log.info("ServletContex初始化");
    }
}
